export function throttle(fn: any, delay = 300) {
  let lastTime = 0
  return function (this: any, ...args: any) {
    const now = Date.now()
    if (now - lastTime >= delay) {
      fn.apply(this, ...args)
      lastTime = now
    }
  }
}

export function trs() {}
